package cn.joyfulmedia.mis.service.interfaces;

import cn.joyfulmedia.entity.ExamMisResources;

import java.util.List;


public interface ResourcesService {
    /**
     * 保存
     */
    public Integer saveResources(ExamMisResources entity) throws Exception;

    /**
     * 修改
     */
    public Integer updateResourcesById(ExamMisResources entity) throws Exception;

    /**
     * 根据ID查找
     *
     * @param id
     * @return
     * @throws Exception
     */
    ExamMisResources selectResourcesById(Object id) throws Exception;

    /**
     * 根据用户获取资源
     *
     * @param id
     * @return
     * @throws Exception
     */
    List<ExamMisResources> findByAccountId(Long id) throws Exception;

    List<ExamMisResources> list(ExamMisResources resource);

    public List<ExamMisResources> findByRoleId(Long id) throws Exception;
}
